<?php

foreach ($_GET as $key => $value){
	if ($key == "cleanup" && $value == 1) {
		$value = 0;
	}

	$newParameterArray[$key] = $value;
}

$and = "";
$i = 0;

foreach ($newParameterArray as $Parameter => $newValue){
	if ($i != 0) {
		$and = "&";
	}

	$newParStr .= $and.$Parameter."=".$newValue;
	$i++;
}

$URI = "index.php?".$newParStr;

header("Location:$URI");
exit;



?>